import request from '@/utils/request'

// 查询推广记录列表
export function listPromotionrecord(query) {
  return request({
    url: '/module/promotionrecord/list',
    method: 'get',
    params: query
  })
}

// 查询推广记录详细
export function getPromotionrecord(id) {
  return request({
    url: '/module/promotionrecord/' + id,
    method: 'get'
  })
}

// 新增推广记录
export function addPromotionrecord(data) {
  return request({
    url: '/module/promotionrecord',
    method: 'post',
    data: data
  })
}

// 修改推广记录
export function updatePromotionrecord(data) {
  return request({
    url: '/module/promotionrecord',
    method: 'put',
    data: data
  })
}

// 删除推广记录
export function delPromotionrecord(id) {
  return request({
    url: '/module/promotionrecord/' + id,
    method: 'delete'
  })
}

// 导出推广记录
export function exportPromotionrecord(query) {
  return request({
    url: '/module/promotionrecord/export',
    method: 'get',
    params: query
  })
}